/****************************************************************************************************
* 版权所有： Copyright (c) 2015-2022 鑫光家纺. All rights reserved.
* 作    者： 半   饱
* 创建日期： 2022/8/8
* 界面功能： <#界面功能#>
****************************************************************************************************/

#import <UIKit/UIKit.h>

@class BBAlertAction;
@class BBAlertConfiguration;
NS_ASSUME_NONNULL_BEGIN

@interface BBAlertViewController : UIViewController

/// 自定义Title部分View
@property (nonatomic,strong) UIView *customTitleView;

/// 自定义Message部分View
@property (nonatomic,strong) UIView *customContentView;

/// 自定义确认按钮（如果传入BBAlertActionTypeDefault/BBAlertActionTypeCustom则不会生效自定义按钮）
@property (nonatomic,strong) UIButton *customConfirmButton;

/// 自定义UI部局
@property (nonatomic,copy) void(^customLayer)(void);

/// 实例化AlertViewController
/// @param title Alert标题
/// @param message Alert信息
/// @param alertConfiguration 配置信息
+ (instancetype)alertViewControllerWithTitle:(NSString *)title withMessage:(NSString *)message  withConfiguration:(nonnull BBAlertConfiguration *)alertConfiguration;

/// 新增事件
/// @param alertAction 事件
- (void)addAction:(BBAlertAction *)alertAction;

- (instancetype)init __attribute__((unavailable("init方法不可用，请用 alertViewControllerWithTitle:withMessage: ")));

- (instancetype)new __attribute__((unavailable("new方法不可用，请用 alertViewControllerWithTitle:withMessage: ")));

- (instancetype)initWithCoder:(NSCoder *)coder __attribute__((unavailable("initWithCoder:方法不可用，请用 alertViewControllerWithTitle:withMessage: ")));

- (instancetype)initWithNibName:(nullable NSString *)nibNameOrNil bundle:(nullable NSBundle *)nibBundleOrNil __attribute__((unavailable("initWithNibName:bundle: 方法不可用，请用 alertViewControllerWithTitle:withMessage: ")));

@end

NS_ASSUME_NONNULL_END
